package org.luxor.common.netty.protocol.message;


import org.luxor.common.netty.protocol.NettyFixedHeader;
import org.luxor.common.netty.protocol.NettyMessageType;
import org.luxor.common.netty.protocol.NettyQoS;

/**
 * Netty Pong Message
 *
 * @author Mr.yan @date 2024/1/31
 */
public class NettyPongMessage extends NettyMessage {

    public NettyPongMessage(NettyFixedHeader fixedHeader) {
        super(fixedHeader, null, null);
    }

    public static NettyPongMessage from() {
        NettyFixedHeader fixedHeader = new NettyFixedHeader(NettyMessageType.PONG, false, NettyQoS.AT_MOST_ONCE);
        return new NettyPongMessage(fixedHeader);
    }
}
